-- GENERATED SPELL FOR [Dragonflayer Weaponsmith] --


function spell0_24080(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(42724,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24080', 577, 1)
end

function spell1_24080(pUnit, Event) --@Concussion Blow,n/a--
pUnit:FullCastSpellOnTarget(22427,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24080', 5315, 1)
end

function spell2_24080(pUnit, Event) --@Disarm,n/a--
pUnit:FullCastSpellOnTarget(6713,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24080', 5325, 1)
end

function Sorts_24080(pUnit, Event)
local choix_sorts_24080 = math.random(0, 2)
if choix_sorts_24080 == 0 then
pUnit:RegisterEvent('spell0_24080', 1, 1)
end
if choix_sorts_24080 == 1 then
pUnit:RegisterEvent('spell1_24080', 1, 1)
end
if choix_sorts_24080 == 2 then
pUnit:RegisterEvent('spell2_24080', 1, 1)
end
end

function mob24080_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24080', math.random(1500, 3000), 1)
end

function mob24080_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24080_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24080_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24080, 1, 'mob24080_Action')
RegisterUnitEvent(24080, 2, 'mob24080_Leave')
RegisterUnitEvent(24080, 3, 'mob24080_Kill')
RegisterUnitEvent(24080, 4, 'mob24080_Die')
